/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.sevenpriciples.isp.isp.compliance.impl;

import za.ac.cput.sevenpriciples.isp.isp.compliance.Salary;

/**
 *
 * @author 210227257
 */
public class SalaryImpl implements Salary{
    private double salary;
    
    public SalaryImpl(double salary){
        this.salary = salary;
    }

    public SalaryImpl() {
        
    }
    @Override
    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public double getSalary() {
        return this.salary;
    }
    
    public double annualSalary(){
        return this.getSalary() * 12;
    }
}
